export const injectSymbol = Symbol();

export const InjectSocket: MethodDecorator = (
  target,
  name,
  descriptor: TypedPropertyDescriptor<any>
) => {
  const origin = descriptor.value!;
  descriptor.value = function (...args: any[]) {
    return origin.apply(this, args);
  };
  descriptor.value[injectSymbol] = true;

  return descriptor as any;
};
